<template>
	<view class="content">
		<view class="text-center">
			<text class="text-white text-xl">欢迎使用在线征订</text>
		</view>
		<view class="title-area padding-lr text-center">
			<text class="title">{{title}}</text>
		</view>
		<view class="logo-area">
			<image class="logo" :src="qrcode"></image>
		</view>
		<view class="hint-area">
			<text>
				微信扫一扫
				<br>
				或长按图片二维码识别
			</text>
		</view>
		<view class="thank-text">
			<view class="divider"></view>
			感谢您的使用与支持
			<view class="divider"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '商城二维码',
				qrcode:"",
			}
		},
		onLoad() {
			this.AXIOS.Request(true, 'POST', {
				url: "/api/app/suhy2yla"
			}, (res) => {
				var rst = res.data;
				if (rst.code == 100) {
					this.qrcode=rst.qrcode
					this.title=rst.name
					console.log("title",this.title)
				} 
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.thank-text {
		color: #888;
		font-size: 14px;
		display: flex;
		align-items: center;
	}

	.divider {
		width: 24px;
		height: 1px;
		background-color: #888;
		margin: 0 10px;
	}

	page {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
		min-height: 100vh;
		background-color: #B3E5FC;
		background-image: linear-gradient(to bottom right, rgba(179, 229, 252, 0.7), rgba(179, 229, 252, 0.9));
		box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.4);
		/* max-width: 400px; */
		margin: auto;
	}

	.logo-area {
		width: 220px;
		height: 220px;
		margin-bottom: 25px;
		padding: 10px;
		background-color: #fff;
		margin-top: 50rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.logo {
		width: 100%;
		height: 100%;

	}

	.title-area {
		display: flex;
		justify-content: center;
		margin-top: 20px;
	}

	.title {
		font-size: 64rpx;
		color: #FFCC00;
		font-weight: 700;
	}

	.hint-area {
		font-size: 14px;
		margin-bottom: 40px;
		color: #666;
		text-align: center;
		line-height: 1.5;
	}
</style>